package cn.com.dycc.party_work.education_dept.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import cn.com.dycc.party_work.education_dept.entity.EducationDept;
import cn.com.dycc.party_work.education_dept.entity.EducationDeptInfo;
import cn.com.dycc.party_work.education_dept.param.FindEducationDeptParam;

/**
 * 
 * Description: 教育学习成果反馈
 * Author: Liket
 * Version: 1.0
 * Create Date Time: 2018年6月29日 下午3:00:00.
 * Update Date Time: 
 * @see
 */
public interface EducationDeptDao {
	
	int addAllEduDept(List<EducationDept> listEduDeptParam);
	
	int addEduDept(EducationDept eduDept);
	int deleteEduDept(
			@Param("education_id") String education_id,
			@Param("dept_id")String dept_id,
			@Param("org_id")String org_id);
	
	int deleteEduDeptByEduId(String education_id);
	
	int deleteEduDeptByEduIdAndDeptId(Map<String, Object> map);
	
	int updateEduDept(EducationDept eduDept);
	
	EducationDept findEduDept(@Param("education_id") String education_id,@Param("dept_id")String dept_id);
	EducationDeptInfo findEduDeptById(
			@Param("education_id")String education_id,
			@Param("dept_id")String dept_id,
			@Param("org_id")String org_id);
	
	String [] findDeptIdByEduId(String education_id);
	
	
	List<EducationDeptInfo> findEduDeptByEduId(String education_id);
	
	//List<EducationDeptInfo> findEduDeptByEid(String education_id);
	List<EducationDeptInfo> findAllEduDept(FindEducationDeptParam param);
	
	String findAllEduDeptCount(FindEducationDeptParam param);

}
